//
//  ActivityDetailCell.m
//  XiangCaoJiaYuan
//
//  Created by long Kan on 17/10/9.
//  Copyright © 2017年 tongj. All rights reserved.
//

#import "ActivityDetailCell.h"

@implementation ActivityDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(ActivityDetailModel *)model{
     NSString *str2 = [NSString stringWithFormat:@"%@",model.sale_image];
     [self.sale_image sd_setImageWithURL:[NSURL URLWithString:str2] placeholderImage:[UIImage imageNamed:@"美食"]];
    self.sale_num.text = [NSString stringWithFormat:@"%d",model.sale_num];
    self.sale_price.text = [NSString stringWithFormat:@"%d",model.sale_price];
    self.original_price.text = [NSString stringWithFormat:@"原价%d元/件",model.original_price];
    self.dsc.text = model.des;
    
}
@end
